package com.seecen.day07;

import javax.swing.*;

public class BallJFrame extends JFrame {
    BallJPanel panel;
    public BallJFrame(){
        panel=new BallJPanel();
        this.add(panel);
    }
    public void showJF(){
        this.setTitle("思诚雷电游戏");
        this.setSize(800,1000);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        panel.starRun();
    }


}


